package com.woniu.aimd.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 教师-班级关联表(TeacherClass)实体类
 *
 * @author zcnovice
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TeacherClass implements Serializable {
    private static final long serialVersionUID = -33904121463917622L;
    /**
     * 主键ID
     */
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 班级id
     */
    private String classId;
    /**
     * 阶段
     */
    private Integer stage;
    /**
     * 开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    /**
     * 结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;


}

